package com.polukeuro.app.model.challenge;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.polukeuro.app.model.entity.Team;

@PersistenceCapable
public class Match extends Challenge{
	
	@Persistent
	private Team local;
	@Persistent
	private Team visitor;
	
	public Match(){
		super();
		this.setType(ChallengeType.MATCH);
		this.local = new Team();
		this.visitor= new Team();
	}
	
	public Team getLocal() {
		return local;
	}
	public void setLocal(Team local) {
		this.local = local;
	}
	public Team getVisitor() {
		return visitor;
	}
	public void setVisitor(Team visitor) {
		this.visitor = visitor;
	}
}
